package com.candy.oop;

public class Test01 {
    public static void main(String[] args) {
        test02();
    }
    public static void test02( ) {
        Student stu1=new Student();
//        stu1.Game sgg=stu1.new Game();
        Student.Game stu=stu1.new Game();
        stu.playGame();
        stu1.sayHi();
        stu1.sayBye();
        stu1.sayHello();
        Student.Sleep ss=new Student.Sleep();
        ss.sleepping();
//        stu1.Game gs=stu1.new Game();




    }


    public static void test01() {
        Solider s1=new Solider();
        Gun g1=new AK47();
        Gun g2=new K_98();
        AK47 ak=(AK47) g1;


        s1.fightting(g1);
        System.out.println("没有子弹了，换枪");
        s1.fightting(g2);

    }
}
